local table_name = "skilllev"
local old_table = IMPORT_D:get_table(table_name)
if not old_table then
    return
end

local new_table = {}
for _, tbl in ipairs(old_table) do
    local skillid = tonumber(tbl.skilltype)
    local skilllev = tonumber(tbl.lv)
    if skillid and skilllev then
        local skill_tbl = new_table[skillid] or {}
        skill_tbl[skilllev] = tbl
        new_table[skillid] = skill_tbl
    end
end

IMPORT_D:set(table_name, new_table)
